package exercises.Charpter10;

public class Three {
	private String myStr = "";
	class Inner {
		private int i = 0;
		public Inner() {
			System.out.println("Inner created!");
		}
		public int value() {return i;}
	}
	public Inner getInner(){
		return new Inner();
	}
	
	public Three(String x) {
		myStr = x;
	}
	
	public Three() {
	}
	
	class ForThree{
		public String toString(){
			return myStr;
		}
	}
	
	public static void main(String[] args){
		Three test = new Three("Test");
		ForThree test2 = test.new ForThree();
		System.out.println(test2);
	}
}
